<%= render :partial => 'shared/item_left_bar', :locals => { :on => 10 } -%>

<div id="main">
  <%= render :partial => 'shared/menu_bar', :locals => { :new_entry_link => new_item_rating_path } -%>
  <%= render :partial => 'form' -%>
  
  <div class="box">
    <table width="96%" class="table border">
      <caption>评论回复</caption>
      <tr>
        <th width="15"><input type="checkbox" id="check_all"></th>
        <th width="38">编号</th>
        <th width="48">用户</th>
        <th>内容</th>
        <th width="48">状态</th>
        <th width="120">创建时间</th>
      </tr>
      <% for reply in @item_rating.replies -%>
        <tr class="<%= cycle('', 'tr2') %>">
          <td><input type="checkbox" class="check" name="ids[]" value="<%= reply.id %>"></td>
          <td><%= reply.id %></td>
          <td><%= reply.user_id %></td>
          <td><%= reply.content %></td>
          <td><%= reply.created_at %></td>
        </tr>
      <% end -%>
    </table>
  </div>
</div>

